{extend name="base" /}
{block name="body"}
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <form class="layui-form form-container" action="{:url('admin/system/updateSiteConfig')}" method="post">
                    <div class="layui-tab layui-tab-brief">
                        <ul class="layui-tab-title">
                            <li class="layui-this">基本设置</li>
                            <li>微信设置</li>
                            <li>短信设置</li>
                            <li>支付设置</li>
                            <li>滑块设置</li>
                            <li>存储设置</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <div class="layui-form" wid100>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">网站名称</label>
                                            <div class="layui-input-block">
                                                <input type="text" name="site_config[site_title]"  value="{:get_site_config("site_title")}" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">网站域名</label>
                                            <div class="layui-input-block">
                                                <input type="text" name="site_config[site_domain]"  value="{:get_site_config("site_domain")}" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">转换接口</label>
                                            <div class="layui-input-block">
                                                <input type="text" name="site_config[interface_url]"  value="{:get_site_config("interface_url")}" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">存储域名</label>
                                            <div class="layui-input-block">
                                                <input type="text" name="site_config[storage_url]"  value="{:get_site_config("storage_url")}" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">客服QQ</label>
                                            <div class="layui-input-block">
                                                <input type="text" name="site_config[qq]"  value="{:get_site_config("qq")}" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">email</label>
                                            <div class="layui-input-block">
                                                <input type="text" name="site_config[email]"  value="{:get_site_config("email")}" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">微信二维码</label>
                                            <div class="layui-input-block">
                                                <input type="text" name="site_config[weixin_qrcode]" value="{:get_site_config("weixin_qrcode")}" style="width: 80%" placeholder="（选填）请上传封面" class="layui-input layui-input-inline" id="qrcode-url">
                                                <button type="button" class="layui-btn" data-upload-url="{:url("/upload/upload")}" id="qrcode"><i class="layui-icon">&#xe67c;</i>选择文件</button>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">备案号</label>
                                            <div class="layui-input-block">
                                                <input type="text" name="site_config[beian]"  value="{:get_site_config("beian")}" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">通讯秘钥</label>
                                            <div class="layui-input-block">
                                                <input type="text" name="site_config[site_key]"  value="{:get_site_config("site_key")}" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">搜索设置</label>
                                            <div class="layui-input-block">
                                                <input type="radio" name="site_config[search_type]" value="xunsearch" title="xunsearch" {:eq_site_config("search_type","xunsearch","checked")}>
                                                <input type="radio" name="site_config[search_type]" value="mysql" title="mysql" {:eq_site_config("search_type","mysql","checked")} >
                                            </div>
                                        </div>
                                        <div class="layui-form-item layui-form-text">
                                            <label class="layui-form-label">统计代码</label>
                                            <div class="layui-input-block">
                                                <textarea name="site_config[site_tongji]" placeholder="请输入统计代码" class="layui-textarea">{:get_site_config("site_tongji")}</textarea>
                                            </div>
                                        </div>
                                        <div class="layui-form-item layui-form-text">
                                            <label class="layui-form-label">版权信息</label>
                                            <div class="layui-input-block">
                                                <textarea name="site_config[site_copyright]" placeholder="请输入版权信息" class="layui-textarea">{:get_site_config("site_copyright")}</textarea>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <div class="layui-input-block">
                                                <button class="layui-btn" lay-submit lay-filter="*">确认保存</button>
                                            </div>
                                        </div>
                                    </div>
                            </div>
                            <div class="layui-tab-item">
                                <div class="layui-form" wid100>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">微信登录</label>
                                        <div class="layui-input-block">
                                            <input type="radio" name="site_config[weixin_login]" value="on" title="开" {:eq_site_config("weixin_login","on","checked")} >
                                            <input type="radio" name="site_config[weixin_login]" value="off" title="关" {:eq_site_config("weixin_login","off","checked")} >
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">APPID</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[weixin_appid]"  value="{:get_site_config("weixin_appid")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">SECRET</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[weixin_secret]"  value="{:get_site_config("weixin_secret")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">AESKEY</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[weixin_aes_key]" value="{:get_site_config("weixin_aes_key")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">TOKEN</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[weixin_token]" value="{:get_site_config("weixin_token")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-input-block">
                                            <button class="layui-btn" lay-submit lay-filter="*">确认保存</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-tab-item">
                                <div class="layui-form" wid100>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">短信接口</label>
                                        <div class="layui-input-block">
                                            <input type="radio" name="site_config[sms_api_type]" value="aliyun" title="阿里云" {:eq_site_config("sms_api_type","aliyun","checked")} >
                                            <input type="radio" name="site_config[sms_api_type]" value="tencent" title="腾讯云" {:eq_site_config("sms_api_type","tencent","checked")} >
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">APPID</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[sms_api_appid]" placeholder="腾讯云专用,选择阿里云则无需填写."  value="{:get_site_config("sms_api_appid")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">KEYID</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[sms_api_keyid]"  value="{:get_site_config("sms_api_keyid")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">SECRET</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[sms_api_secret]"  value="{:get_site_config("sms_api_secret")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">签名</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[sms_api_sign]"  value="{:get_site_config("sms_api_sign")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">模板ID</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[sms_api_template_id]"  value="{:get_site_config("sms_api_template_id")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-input-block">
                                            <button class="layui-btn" lay-submit lay-filter="*">确认保存</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-tab-item">
                                <div class="layui-form" wid100>
                                    <fieldset class="layui-elem-field">
                                        <legend>全站免费</legend>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">启用</label>
                                            <div class="layui-input-block">
                                                <input type="radio" name="site_config[pay_type_free]" value="1" title="启用" {:eq_site_config("pay_type_free","1","checked")} >
                                                <input type="radio" name="site_config[pay_type_free]" value="0" title="关闭" {:eq_site_config("pay_type_free","0","checked")} >
                                            </div>
                                        </div>
                                    </fieldset>
                                    <fieldset class="layui-elem-field">
                                        <legend>支付宝支付</legend>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">启用</label>
                                            <div class="layui-input-block">
                                                <input type="radio" name="site_config[pay_type_alipay]" value="1" title="启用" {:eq_site_config("pay_type_alipay","1","checked")}>
                                                <input type="radio" name="site_config[pay_type_alipay]" value="0" title="关闭" {:eq_site_config("pay_type_alipay","0","checked")} >
                                            </div>
                                        </div>
                                    </fieldset>
                                    <fieldset class="layui-elem-field">
                                        <legend>微信支付</legend>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">启用</label>
                                            <div class="layui-input-block">
                                                <input type="radio" name="site_config[pay_type_weixin]" value="1" title="启用" {:eq_site_config("pay_type_weixin","1","checked")} >
                                                <input type="radio" name="site_config[pay_type_weixin]" value="0" title="关闭" {:eq_site_config("pay_type_weixin","0","checked")} >
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <div class="layui-input-block">
                                                <button class="layui-btn" lay-submit lay-filter="*">确认保存</button>
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
                            </div>
                            <div class="layui-tab-item">
                                <div class="layui-form" wid100>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">SECRETID</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[tencent_keyid]"  value="{:get_site_config("tencent_keyid")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">SECRETKEY</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[tencent_secretkey]"  value="{:get_site_config("tencent_secretkey")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">CaptchaAppId</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[tencent_captcha_appid]"  value="{:get_site_config("tencent_captcha_appid")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">AppSecretKey</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[tencent_app_secretkey]"  value="{:get_site_config("tencent_app_secretkey")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-input-block">
                                            <button class="layui-btn" lay-submit lay-filter="*">确认保存</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-tab-item">
                                <div class="layui-form" wid100>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">网盘接口</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[baidu_api]"  value="{:get_site_config("baidu_api")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">图片缩放</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="site_config[pic_param]" placeholder="腾讯云图片缩放参数可以为空" value="{:get_site_config("pic_param")}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-input-block">
                                            <button class="layui-btn" lay-submit lay-filter="*">确认保存</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}